import Vue from 'vue'
import App from './App.vue'
import { Layout, Icon, Menu } from 'ant-design-vue'
import { Dropdown, Button, Space, Avatar } from 'ant-design-vue'
// 修改主题
import 'ant-design-vue/dist/antd.less'
// 加载路由
import router from './router'

Vue.component(Layout.name, Layout)
Vue.component(Layout.Sider.name, Layout.Sider)
Vue.component(Layout.Header.name, Layout.Header)
Vue.component(Layout.Content.name, Layout.Content)
Vue.component(Menu.name, Menu)
Vue.component(Menu.SubMenu.name, Menu.SubMenu)
Vue.component(Menu.Item.name, Menu.Item)
Vue.component(Icon.name, Icon)
Vue.component(Dropdown.name, Dropdown)
Vue.component(Button.name, Button)
Vue.component(Space.name, Space)
Vue.component(Avatar.name, Avatar)

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
